<template>
	<view>
		{{mode}}
		<view v-if="mode == 'table'">
			<uni-table
				ref="table"
				:loading="loading"
				:type="tableType ? 'selection' : ''"
				emptyText="暂无更多数据"
				@selection-change="selectionChange"
				class="position-relative"
				:border="tBorder"
				:stripe="tStripe"
			>
			<uni-tr class="position-sticky top-0 bg-white">
				<block v-for="(item, index) in options.option" :key="index">
					<uni-th :width="item.width || ''" :align="item.align || 'center'">
						<view class="uni-th-cell-text">{{ item.label }}</view>
					</uni-th>
				</block>
				<uni-th v-if="options.isOption" :width="options.optionWidth || 160" align="center">操作</uni-th>
			</uni-tr>
			</uni-table>
		</view>
		<view v-if="mode == 'list'">
			list
		</view>
	</view>
</template>
<script>
import props from './props.js';
export default {
	name: 'wh-table',
	mixins: [props],
	setup(props) {
		
		const tableFunction = ()=>{
			
		}
		const tabFunc = tableFunction()
		
		
		return {
			props,
			tabFunc
		};
	}
};
</script>
